<?php
/**
 * 公共接口
 */
class CommonAction extends FrontAction{

    public function __construct() {
        parent::__construct();
    }

    public function setCols(){
        $cols = AppCommon::getRequestString("cols");
        $cols_action = AppCommon::getRequestString("r");
        $cols = !empty($cols) ? json_decode($cols, true) : array();
        CommonAd::saveUserCols($cols,$cols_action,$this->userinfo['btgouserid']);
        $result=array(
            'code'=>1,
            'data'=>'保存成功',
        );
        exit(json_encode($result));
    }


}